<div class="bjui-pageContent">
    <form action="{:U('save_commend')}" data-callback="dialogFormCall" data-toggle="validate" data-alertmsg="false" class="dialogForm">
        <input type="hidden" name="id" value="{$va.id}"/>
        <div class="form-group">
            <label class="x100">名称:</label>
            <input type="text" name="name" value="{$va.name}" data-rule="required" />
        </div>
        <div class="form-group clearfix">
            <label class="x100 pull-left">类型图片:</label>
            <div class="pull-left parent_img">
                <if condition="$va.photo neq null">
                <img src="{$va.photo}" alt="LOGO" width="70" />
                <else/>
                <img src="__MK__/image/58008889b30bc.jpg" alt="LOGO" width="70" />
                </if>
                <input type="hidden" name="photo" value="{$va.photo}" />
                <span data-toggle="upload" 
                data-uploader="{:U('Index/upload')}"
                 data-file-type-exts="*.png;*.jpg"
                 data-icon="cloud-upload"
                 data-on-upload-success="upload_callback"
                 data-auto="true"
                 data-button-text="上传图片"
                ></span>
            </div>
        </div>
        <div class="form-group">
            <label class="x100">权重:</label>
            <input type="text" name="sort" value="{$va.sort}" data-toggle="spinner" data-min="0" data-step="1" data-rule="integer" class="w100"  />
        </div>
        <div class="form-group">
            <label class="x100">状态:</label>
             <input type="radio" name="status" value="0" id="brand_status1" data-toggle="icheck" data-label="显示"  <if condition="$va.sort neq '1'">checked</if>  />
              <input type="radio" name="status" value="1" id="brand_status2" data-toggle="icheck" data-label="不显示" <if condition="$va.sort eq '1'">checked</if>  />
        </div>
    </form>
</div>
<include file="Common/footer" ftype="save" />